//报表管理/编辑模态框
import React, { Component } from "react";
import { connect } from "dva";

import {
    Form,
    Radio,
    Modal,
    Table,
    Select,
    Cascader,
    DatePicker,
    Dropdown,
    Button,
    Icon,
    message,
    Pagination,
    Input,
    TimePicker
} from "antd";
import moment from "moment";
import {statementEdit,disposeEdit,repairEdit} from "../../../../services/redmoe"
const { TextArea } = Input;


//form表单套件
const { MonthPicker, RangePicker, WeekPicker } = DatePicker;


    class Editmodal extends Component {
        state={
            row:{},
            rows:{},
            throughput:'',
            banzu:'',
            useNaturalGas:'',
            useElectric:'',
            takeTime:'',
            opertion:'',
            remarkText:'',
            useWater:'',
            createTime:'',
            time:'',
            visible1:'',
            afterProcessing2:'',
            afterProcessing3:'',
            afterProcessing4:'',
            afterProcessing5:'',
            afterProcessing6:'',
            afterProcessing7:'',
            afterProcessing8:'',
            afterProcessing1:'',
            beforeProcessing1:'',
            beforeProcessing2:'',
            beforeProcessing3:'',
            beforeProcessing4:'',
            beforeProcessing5:'',
            beforeProcessing6:'',
            beforeProcessing7:'',
            beforeProcessing8:'',
           endTime:'',
           processingTemperature:'',
           startTime:'',
           batches:'',
           Time:'',
           Data:'',
           Enddata:'',
           Endtime:'',
           times:''

        }
        componentWillReceiveProps(){
      
            this.setState({
                row:this.props.row,
                visible1:'',
                rows:{},
            throughput:'',
            banzu:'',
            useNaturalGas:'',
            useElectric:'',
            takeTime:'',
            opertion:'',
            remarkText:'',
            useWater:'',
            createTime:'',
            time:'',
            visible1:'',
            afterProcessing2:'',
            afterProcessing3:'',
            afterProcessing4:'',
            afterProcessing5:'',
            afterProcessing6:'',
            afterProcessing7:'',
            afterProcessing8:'',
            afterProcessing1:'',
            beforeProcessing1:'',
            beforeProcessing2:'',
            beforeProcessing3:'',
            beforeProcessing4:'',
            beforeProcessing5:'',
            beforeProcessing6:'',
            beforeProcessing7:'',
            beforeProcessing8:'',
           endTime:'',
           processingTemperature:'',
           startTime:'',
           batches:'',
           Time:'',
           Data:'',
           Enddata:'',
           Endtime:'',
           times:''
            })
        }

        handChange = (value) => {
            this.setState({
                times:value
            })
        }
        componentWillMount(){
         
            this.setState({
                row:this.props.row,
                visible1:'',
                rows:{},
            throughput:'',
            banzu:'',
            useNaturalGas:'',
            useElectric:'',
            takeTime:'',
            opertion:'',
            remarkText:'',
            useWater:'',
            createTime:'',
            time:'',
            visible1:'',
            afterProcessing2:'',
            afterProcessing3:'',
            afterProcessing4:'',
            afterProcessing5:'',
            afterProcessing6:'',
            afterProcessing7:'',
            afterProcessing8:'',
            afterProcessing1:'',
            beforeProcessing1:'',
            beforeProcessing2:'',
            beforeProcessing3:'',
            beforeProcessing4:'',
            beforeProcessing5:'',
            beforeProcessing6:'',
            beforeProcessing7:'',
            beforeProcessing8:'',
           endTime:'',
           processingTemperature:'',
           startTime:'',
           batches:'',
           Time:'',
           Data:'',
           Enddata:'',
           Endtime:'',
           times:''
            })
        }
        //日期
        DatePicker = (data,datastring) => {
            console.log(datastring)
                 
              this.setState({
                createTime:datastring
              })
          }
        //时间
        TimePicker = (data,datastring) => {
            console.log(datastring)
                 
              this.setState({
                takeTime:datastring
              })
          }



          Time = (data,datastring) => {
            console.log(datastring)
                 
              this.setState({
                Time:datastring
              })
            
          }
          Date = (data,datastring) => {
            console.log(datastring)
                 
              this.setState({
                Data:datastring
              })
             
          }
          Enddata = (data,datastring) => {
            console.log(datastring)
                 
              this.setState({
                Enddata:datastring
              })
              
          }
          Endtime = (data,datastring) => {
            console.log(datastring)
                 
              this.setState({
                Endtime:datastring
              })
              
          }






        //普通输入框
        onShowChange = (type, e) => {
            let value = e.target.value;
            if(value == '') {
                this.setState({
                    [type]:null
                })
            }
            if(value != '') {
                this.setState({
                    [type]: value
                })
            }
            
            console.log("type:", value);
        }

        //点击保存事件
        save = () => {

            console.log(this.state.takeTime)



        
            if(this.state.Time == '') {
               
          
                let Time =  moment(this.props.row.Time).format('HH:mm:ss')
                this.setState({
                    startTime:`${this.state.Data} ${Time}`
                })
            }
            if(this.state.Data == '') {
                
          
                let Data =  moment(this.props.row.Data).format('YYYY-MM-DD')
                this.setState({
                    startTime:`${Data} ${this.state.Time}`
                })
            }

            if(this.state.Enddata == '') {
               
          
                let Enddata =  moment(this.props.row.Enddata).format('YYYY-MM-DD')
                this.setState({
                    endTime:`${Enddata} ${this.state.Endtime}`
                })
            }
            if(this.state.Endtime == '') {
               
                let Endtime =  moment(this.props.row.Endtime).format('HH:mm:ss')
                this.setState({
                    endTime:`${this.state.Enddata} ${Endtime}`
                })
            }



            if(this.state.Time == '' && this.state.Data == '') {
                let Data = moment(this.props.row.Data).format('YYYY-MM-DD')
                let Time =  moment(this.props.row.Time).format('HH:mm:ss')
                this.setState({
                    startTime:`${Data} ${Time}`
                })
               
            }

            if(this.state.Endtime == '' && this.state.Enddata == '') {
                let Enddata = moment(this.props.row.Enddata).format('YYYY-MM-DD')
                let Endtime =  moment(this.props.row.Endtime).format('HH:mm:ss')
                this.setState({
                    endTime:`${Enddata} ${Endtime}`
                })
               
            }


            






                
          
            


                if(this.state.createTime==''){
                    let createTime = moment(this.props.row.createTime).format('YYYY-MM-DD')
                  
                    this.setState({
                        time:`${createTime} ${this.state.taketime}`
                    })
                }

                if(this.state.takeTime==''){
                    let takeTime = moment(this.props.row.takeTime).format('HH:00:00')
                  
                    this.setState({
                        time:`${this.state.createTime} ${takeTime}`
                    })
                }

                if(this.state.takeTime == '' && this.state.createTime == '') {
                    let createTime = moment(this.props.row.createTime).format('YYYY-MM-DD')
                    let takeTime = moment(this.props.row.takeTime).format('HH:00:00')
                    this.setState({
                        time:`${createTime} ${takeTime}`
                    })
                }
           






            if(this.state.useNaturalGas == '') {
                this.setState({
                    useNaturalGas:this.props.row.useNaturalGas
                })
            }
            if(this.state.times == '') {
                this.setState({
                    times:this.props.row.times
                })
            }
            if(this.state.useElectric == '') {
                this.setState({
                    useElectric:this.props.row.useElectric
                })
            }
            if(this.state.opertion == '') {
                this.setState({
                    opertion:this.props.row.opertion
                })
            }
            if(this.state.remarkText == '') {
                this.setState({
                    remarkText:this.props.row.remarkText
                })
            }
            if(this.state.useWater == '') {
                this.setState({
                    useWater:this.props.row.useWater
                })
            }
            if(this.state.banzu == '') {
                this.setState({
                    banzu:this.props.row.banzu
                })
            }
            if(this.state.throughput == '') {
                this.setState({
                    throughput:this.props.row.throughput
                })
            }




            if(this.state.batches == '') {
                this.setState({
                    batches:this.props.row.batches
                })
            }
            if(this.state.processingTemperature == '') {
                this.setState({
                    processingTemperature:this.props.row.processingTemperature
                })
            }
            if(this.state.waitTime == '') {
                this.setState({
                    waitTime:this.props.row.waitTime
                })
            }


            
            if(this.state.beforeProcessing1 == '') {
                this.setState({
                    beforeProcessing1:this.props.row.beforeProcessing1
                })
            }
            if(this.state.beforeProcessing2 == '') {
                this.setState({
                    beforeProcessing2:this.props.row.beforeProcessing2
                })
            }
            if(this.state.beforeProcessing3 == '') {
                this.setState({
                    beforeProcessing3:this.props.row.beforeProcessing3
                })
            }
            if(this.state.beforeProcessing4 == '') {
                this.setState({
                    beforeProcessing4:this.props.row.beforeProcessing4
                })
            }
            if(this.state.beforeProcessing5 == '') {
                this.setState({
                    beforeProcessing5:this.props.row.beforeProcessing5
                })
            }
            if(this.state.beforeProcessing6 == '') {
                this.setState({
                    beforeProcessing6:this.props.row.beforeProcessing6
                })
            }
            if(this.state.beforeProcessing7 == '') {
                this.setState({
                    beforeProcessing7:this.props.row.beforeProcessing7
                })
            }
            if(this.state.beforeProcessing8 == '') {
                this.setState({
                    beforeProcessing8:this.props.row.beforeProcessing8
                })
            }
            if(this.state.afterProcessing1 == '') {
                this.setState({
                    afterProcessing1:this.props.row.afterProcessing1
                })
            }
            if(this.state.afterProcessing2 == '') {
                this.setState({
                    afterProcessing2:this.props.row.afterProcessing2
                })
            }
            if(this.state.afterProcessing3 == '') {
                this.setState({
                    afterProcessing3:this.props.row.afterProcessing3
                })
            }
            if(this.state.afterProcessing4 == '') {
                this.setState({
                    afterProcessing4:this.props.row.afterProcessing4
                })
            }
            if(this.state.afterProcessing5 == '') {
                this.setState({
                    afterProcessing5:this.props.row.afterProcessing5
                })
            }
            if(this.state.afterProcessing6 == '') {
                this.setState({
                    afterProcessing6:this.props.row.afterProcessing6
                })
            }
            if(this.state.afterProcessing7 == '') {
                this.setState({
                    afterProcessing7:this.props.row.afterProcessing7
                })
            }
            if(this.state.afterProcessing8 == '') {
                this.setState({
                    afterProcessing8:this.props.row.afterProcessing8
                })
            }

            

            
            setTimeout(() => {
                if(this.state.text == '土壤处理量统计表') {
                    if(this.state.createTime==''){
                        let createTime = moment(this.props.row.createTime).format('YYYY-MM-DD')
                      
                        this.setState({
                            time:`${createTime}`
                        })
                    }
                }
                

                let data = {
                    id:this.props.row.id,
                    useNaturalGas:this.state.useNaturalGas,
                    useElectric:this.state.useElectric,
                    takeTime:this.state.time,
                    opertion:this.state.opertion,
                    remarkText:this.state.remarkText,
                    useWater:this.state.useWater,
                    banzu:this.state.banzu,
                    throughput:this.state.throughput,
                    afterProcessing2:this.state.afterProcessing2,
            afterProcessing3:this.state.afterProcessing3,
            afterProcessing4:this.state.afterProcessing4,
            afterProcessing5:this.state.afterProcessing5,
            afterProcessing6:this.state.afterProcessing6,
            afterProcessing7:this.state.afterProcessing7,
            afterProcessing8:this.state.afterProcessing8,
            afterProcessing1:this.state.afterProcessing1,
            beforeProcessing1:this.state.beforeProcessing1,
            beforeProcessing2:this.state.beforeProcessing2,
            beforeProcessing3:this.state.beforeProcessing3,
            beforeProcessing4:this.state.beforeProcessing4,
            beforeProcessing5:this.state.beforeProcessing5,
            beforeProcessing6:this.state.beforeProcessing6,
            beforeProcessing7:this.state.beforeProcessing7,
            beforeProcessing8:this.state.beforeProcessing8,
           endTime:this.state.endTime,
           processingTemperature:this.state.processingTemperature,
           startTime:this.state.startTime,
           batches:this.state.batches,
           times:this.state.times
                    }
                
                   if(this.props.text == '能源消耗统计表') {
                    statementEdit({...data}).then(data => {
                        if(data.data.rc == 0) {
                            
                            this.setState({
                             visible1:'false'
                            })
                            this.props.editcg('1')

                        }
                    })
                   }

                   if(this.props.text == '土壤处理量统计表') {
                    disposeEdit({...data}).then(data => {
                        if(data.data.rc == 0) {
                           
                            this.setState({
                             visible1:'false'
                            })
                            this.props.editcg('1')
                        }
                    })
                   }

                   if(this.props.text == '土壤修复指标汇总表') {
                    repairEdit({...data}).then(data => {
                        if(data.data.rc == 0) {
                            this.setState({
                             visible1:'false'
                            })
                            this.props.editcg('1')
                        }
                    })
                   }
                   
            },500 )
            
        }

        render() {
           
            const { visible1, onCancel, onCreate, form ,text} = this.props;
            console.log(this.props.row)
            const {row} = this.props
            const Option = Select.Option;
        //    row.createTime = 
         
           if(text == "能源消耗统计表") {
            return (
              <Modal
                destroyOnClose={true}
                  visible={this.state.visible1== ''?visible1:false}
                  title="编辑记录"
                  okText="保存"
                  cancelText="关闭"
                  onCancel={onCancel}
                  onOk={this.save}
                 
              >
              日期 <DatePicker  defaultValue={moment(moment(row.takeTime).format('YYYY-MM-DD'), 'YYYY-MM-DD')} value={this.state.createTime == ''?moment(moment(row.takeTime).format('YYYY-MM-DD'), 'YYYY-MM-DD'):moment(this.state.createTime, 'YYYY-MM-DD')} onChange={this.DatePicker.bind(this.DatePicker)}/>
               时间 <TimePicker  defaultValue={moment(moment(row.takeTime).format('HH:mm:ss'), 'HH:mm:ss')} value={this.state.takeTime == ''?moment(moment(row.takeTime).format('HH:mm:ss'), 'HH:mm:ss'):moment(this.state.takeTime, 'HH:mm:ss')} onChange={this.TimePicker.bind(this.TimePicker)}/><br/>
              燃气抄表值/Nm³ : <Input style={{width:170,marginTop:10}} type="textarea"  size="small" defaultValue={row.useNaturalGas} value={this.state.useNaturalGas == ''?row.useNaturalGas:this.state.useNaturalGas} onChange={this.onShowChange.bind(this, 'useNaturalGas')}/> <br/>
              电耗抄表值 : <Input style={{width:170,marginTop:10}} type="textarea" size="small" defaultValue={row.useElectric} value={this.state.useElectric == ''?row.useElectric:this.state.useElectric} onChange={this.onShowChange.bind(this, 'useElectric')}/><br/>
              水耗抄表值 : <Input style={{width:170,marginTop:10}} type="textarea" size="small" defaultValue={row.useWater} value={this.state.useWater == ''?row.useWater:this.state.useWater} onChange={this.onShowChange.bind(this, 'useWater')}/><br/>
              记录人 : <Input style={{width:170,marginTop:10}} type="textarea" size="small"  defaultValue={row.opertion} value={this.state.opertion == ''?row.opertion:this.state.opertion} onChange={this.onShowChange.bind(this, 'opertion')}/><br/>
              备注 : <TextArea style={{width:300,marginTop:10}} type="textarea" defaultValue={row.remarkText} value={this.state.remarkText == ''?row.remarkText:this.state.remarkText} onChange={this.onShowChange.bind(this, 'remarkText')}/>
                
              </Modal>
          )
           }
           if(text == "土壤处理量统计表") {
            return (
              <Modal
                  destroyOnClose={true}
                  visible={this.state.visible1== ''?visible1:false}
                  title="编辑记录"
                  okText="保存"
                  cancelText="关闭"
                  onCancel={onCancel}
                  onOk={this.save}
              >
              日期 : <DatePicker  size="small" defaultValue={moment(moment(row.takeTime).format('YYYY-MM-DD'), 'YYYY-MM-DD')} value={this.state.createTime == ''?moment(moment(row.takeTime).format('YYYY-MM-DD'), 'YYYY-MM-DD'):moment(this.state.createTime, 'YYYY-MM-DD')} onChange={this.DatePicker.bind(this.DatePicker)}/>
              时间 :   <Select defaultValue={row.times} style={{ width: 120 }} onChange={this.handChange} >
                            <Option value="00:00-06:00">00:00-06:00</Option>
                             <Option value="06:00-12:00">06:00-12:00</Option>
                             <Option value="12:00-18:00">12:00-18:00</Option>
                             <Option value="18:00-00:00">18:00-00:00</Option>
                        </Select><br/>
              
              {/* <Input style={{width:130,marginTop:10}} type="textarea" size="small"  defaultValue={row.times} value={this.state.times == ''?row.times:this.state.times} onChange={this.onShowChange.bind(this, 'times')}/><br/> */}
               班组 : <Input style={{width:130,marginTop:10}} type="textarea" size="small"  defaultValue={row.banzu} value={this.state.banzu == ''?row.banzu:this.state.banzu} onChange={this.onShowChange.bind(this, 'banzu')}/><br/>
              土壤处理量 : <Input style={{width:130,marginTop:10}} size="small" type="textarea" defaultValue={row.throughput} value={this.state.throughput == ''?row.throughput:this.state.throughput} onChange={this.onShowChange.bind(this, 'throughput')}/><br/>

                 记录人 : <Input style={{width:130,marginTop:10}} type="textarea" size="small"  defaultValue={row.opertion} value={this.state.opertion == ''?row.opertion:this.state.opertion} onChange={this.onShowChange.bind(this, 'opertion')}/><br/>
              备注 :  <TextArea style={{width:300,marginTop:10}} type="textarea" defaultValue={row.remarkText} value={this.state.remarkText == ''?row.remarkText:this.state.remarkText} onChange={this.onShowChange.bind(this, 'remarkText')}/><br/>
              </Modal>
          )
           }
           if(text == "土壤修复指标汇总表") {
            return (
              <Modal
              destroyOnClose={true}
              visible={this.state.visible1== ''?visible1:false}
                  title="编辑记录"
                  okText="保存"
                  cancelText="关闭"
                  onCancel={onCancel}
                  onOk={this.save}
              >
                批次 <Input style={{width:170,marginTop:10}} type="textarea" size="small"  defaultValue={row.batches} value={this.state.batches == ''?row.batches:this.state.batches} onChange={this.onShowChange.bind(this, 'batches')}/><br/>
                开始日期 <DatePicker size="small" style={{marginTop:10}} defaultValue={moment(moment(row.startTime).format('YYYY-MM-DD'), 'YYYY-MM-DD')} value={this.state.Data == ''?moment(moment(row.startTime).format('YYYY-MM-DD'), 'YYYY-MM-DD'):moment(this.state.Data, 'YYYY-MM-DD')} onChange={this.Date.bind(this.Date)}/>
                开始时间 <TimePicker size="small" style={{marginTop:10}}  defaultValue={moment(moment(row.startTime).format('HH:mm:ss'), 'HH:mm:ss')} value={this.state.Time == ''?moment(moment(row.startTime).format('HH:mm:ss'), 'HH:mm:ss'):moment(this.state.Time, 'HH:mm:ss')} onChange={this.Time.bind(this.Time)}/><br/>
                结束日期 <DatePicker size="small" style={{marginTop:10}}  value={row.endTime?moment(moment(row.endTime).format('YYYY-MM-DD'), 'YYYY-MM-DD'):(this.state.Enddata== ''?"":moment(this.state.Enddata, 'YYYY-MM-DD'))} onChange={this.Enddata.bind(this.Enddata)}/>
                结束时间 <TimePicker size="small" style={{marginTop:10}}  value={row.endTime?moment(moment(row.endTime).format('HH:mm:ss'), 'HH:mm:ss'):(this.state.Endtime ==""?"":moment(this.state.Endtime, 'HH:mm:ss'))} onChange={this.Endtime.bind(this.Endtime)}/><br/>

                处理量 <Input style={{width:170,marginTop:10}} type="textarea" size="small"  defaultValue={row.throughput} value={this.state.throughput == ''?row.throughput:this.state.throughput} onChange={this.onShowChange.bind(this, 'throughput')}/><br/>

                处理温度均值/℃  <Input size="small" style={{width:170,marginTop:10}} type="textarea" defaultValue={row.processingTemperature} value={this.state.processingTemperature == ''?row.processingTemperature:this.state.processingTemperature} onChange={this.onShowChange.bind(this, 'processingTemperature')}/><br/>

                停留时间 <Input style={{width:170,marginTop:10}} type="textarea" size="small"  defaultValue={row.waitTime} value={this.state.waitTime == ''?row.waitTime:this.state.waitTime} onChange={this.onShowChange.bind(this, 'waitTime')}/><br/>

                六氯苯 &nbsp; &nbsp; &nbsp;     处理前 : <Input size="small" style={{width:130,marginTop:10}} type="textarea" defaultValue={row.beforeProcessing1} value={this.state.beforeProcessing1 == ''?row.beforeProcessing1:this.state.beforeProcessing1} onChange={this.onShowChange.bind(this, 'beforeProcessing1')}/>
                            处理后 : <Input style={{width:130,marginTop:10}} type="textarea" defaultValue={row.afterProcessing1} value={this.state.afterProcessing1 == ''?row.afterProcessing1:this.state.afterProcessing1} onChange={this.onShowChange.bind(this, 'afterProcessing1')} size="small"/> <br/>

                             硝基苯 &nbsp; &nbsp; &nbsp;  处理前 : <Input size="small" style={{width:130,marginTop:10}} type="textarea" defaultValue={row.beforeProcessing2} value={this.state.beforeProcessing2 == ''?row.beforeProcessing2:this.state.beforeProcessing2} onChange={this.onShowChange.bind(this, 'beforeProcessing2')}/>
                            处理后 : <Input style={{width:130,marginTop:10}} type="textarea" defaultValue={row.afterProcessing2} value={this.state.afterProcessing2 == ''?row.afterProcessing2:this.state.afterProcessing2} onChange={this.onShowChange.bind(this, 'afterProcessing2')} size="small"/> <br/>

                             苯并(a)芘 &nbsp;    处理前 : <Input size="small" style={{width:130,marginTop:10}} type="textarea" defaultValue={row.beforeProcessing3} value={this.state.beforeProcessing3 == ''?row.beforeProcessing3:this.state.beforeProcessing3} onChange={this.onShowChange.bind(this, 'beforeProcessing3')}/>
                            处理后 : <Input style={{width:130,marginTop:10}} type="textarea" defaultValue={row.afterProcessing3} value={this.state.afterProcessing3 == ''?row.afterProcessing3:this.state.afterProcessing3} onChange={this.onShowChange.bind(this, 'afterProcessing3')} size="small"/> <br/>

                             苯并(a)蒽 &nbsp;  处理前 : <Input size="small" style={{width:130,marginTop:10}} type="textarea" defaultValue={row.beforeProcessing4} value={this.state.beforeProcessing4 == ''?row.beforeProcessing4:this.state.beforeProcessing4} onChange={this.onShowChange.bind(this, 'beforeProcessing4')}/>
                            处理后 : <Input style={{width:130,marginTop:10}} type="textarea" defaultValue={row.afterProcessing4} value={this.state.afterProcessing4 == ''?row.afterProcessing4:this.state.afterProcessing4} onChange={this.onShowChange.bind(this, 'afterProcessing4')} size="small"/> <br/>

                            三氯乙烯 &nbsp; 处理前 : <Input size="small" style={{width:130,marginTop:10}} type="textarea" defaultValue={row.beforeProcessing5} value={this.state.beforeProcessing5== ''?row.beforeProcessing5:this.state.beforeProcessing5} onChange={this.onShowChange.bind(this, 'beforeProcessing5')}/>
                            处理后 : <Input style={{width:130,marginTop:10}}  type="textarea" defaultValue={row.afterProcessing5} value={this.state.afterProcessing5 == ''?row.afterProcessing5:this.state.afterProcessing5} onChange={this.onShowChange.bind(this, 'afterProcessing5')} size="small"/> <br/>

                            1,4-二氯苯    处理前 : <Input size="small" style={{width:130,marginTop:10}} type="textarea" defaultValue={row.beforeProcessing6} value={this.state.beforeProcessing6 == ''?row.beforeProcessing6:this.state.beforeProcessing6} onChange={this.onShowChange.bind(this, 'beforeProcessing6')}/>
                            处理后 : <Input style={{width:130,marginTop:10}} type="textarea" defaultValue={row.afterProcessing6} value={this.state.afterProcessing6 == ''?row.afterProcessing6:this.state.afterProcessing6} onChange={this.onShowChange.bind(this, 'afterProcessing6')} size="small"/> <br/>

                             污染物质7   处理前 : <Input size="small" style={{width:130,marginTop:10}} type="textarea" defaultValue={row.beforeProcessing7} value={this.state.beforeProcessing7 == ''?row.beforeProcessing7:this.state.beforeProcessing7} onChange={this.onShowChange.bind(this, 'beforeProcessing7')}/>
                            处理后 : <Input style={{width:130,marginTop:10}} type="textarea" defaultValue={row.afterProcessing7} value={this.state.afterProcessing7 == ''?row.afterProcessing7:this.state.afterProcessing7} onChange={this.onShowChange.bind(this, 'afterProcessing7')} size="small"/> <br/>

                             污染物质8   处理前 : <Input size="small" style={{width:130,marginTop:10}} type="textarea" defaultValue={row.beforeProcessing8} value={this.state.beforeProcessing8 == ''?row.beforeProcessing8:this.state.beforeProcessing8} onChange={this.onShowChange.bind(this, 'beforeProcessing8')}/>
                            处理后 : <Input style={{width:130,marginTop:10}} type="textarea" defaultValue={row.afterProcessing8} value={this.state.afterProcessing8 == ''?row.afterProcessing8:this.state.afterProcessing8} onChange={this.onShowChange.bind(this, 'afterProcessing8')} size="small"/> <br/>            

              备注  <TextArea type="textarea" defaultValue={row.remarkText} value={this.state.remarkText == ''?row.remarkText:this.state.remarkText} onChange={this.onShowChange.bind(this, 'remarkText')}/>
                
              </Modal>
          )
           }
           
        }
    }


export default connect()(Editmodal);
